package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author long
 * @since 2022-10-19
 */
@Getter
@Setter
  @TableName("t_admin")
@ApiModel(value = "Admin对象")
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Long id;

      @ApiModelProperty("账号")
      private String account;

      @ApiModelProperty("密码")
      private String password;

      @ApiModelProperty("手机号码")
      private String phone;

      @ApiModelProperty("状态(0:禁用 1:正常)")
      private String status;

      @ApiModelProperty("所属部门id")
      private Long deptId;

      @ApiModelProperty("创建时间")
        @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新时间")
        @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;
}
